package jxau.jwgl.service;

import jxau.jwgl.api.JWGLServerException;
import jxau.jwgl.commons.entity.Course;
import jxau.jwgl.commons.entity.CourseCategory;

import java.util.List;

/**
 * ChooseCourseSerivce
 *
 * @author LongShu 2017/06/12
 */
public interface ChooseCourseSerivce {

    /**
     * 课程列表
     *
     * @param username 学号
     * @param category 课程分类
     * @throws JWGLServerException
     */
    List<Course> courseInfo(String username, CourseCategory category) throws JWGLServerException;

    /**
     * 选课
     *
     * @param username 学号
     * @param course   选的课程
     * @return 选课信息
     * @throws JWGLServerException
     */
    String chooseCourse(String username, Course course) throws JWGLServerException;

}
